<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<link rel="stylesheet" href="css/all.css" type="text/css" media="screen">
	<link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
	<script type="text/javascript" src="js/jquery-1.12.3.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$(".dropdown").click(function() {
				if($(this).hasClass("open")){
					$(this).removeClass("open");
				}else{
					$(".dropdown").removeClass("open");
					$(this).addClass("open");
				}
			});
		})
	</script>
</head>

<body>
	<c:if test="${isEdit!=true }">
		<!-- 非编辑模式 -->
		<header id="header" class="clearfix">
		<div id="headTitle">
			<div class="wrapper">
				<div id="siteName">
						<h2>日死尼玛</h2>
				</div>
				<div id="siteSlogan">
					<span></span>
				</div>
			</div>
		</div>
		<div id="headNav">
			<div class="wrapper"></div>
		</div>
		</header>
		<nav id="navbar" class="navbar" role="navigation">
		<div class="collapse navbar-collapse" id="navbarCollapse">
			<ul class="nav navbar-nav">
				<li class="nav-system-home active"><a href="Home.action">首页</a>
				</li>
				<c:forEach items="${requestScope.menu }" var="ismenu">
					<c:if test="${ismenu.child.size()!=0 }">
						<li class="dropdown"><a class="dropdown-toggle"
							data-toggle="dropdown">${ismenu.className }<b class="caret"></b></a>
							<ul class="dropdown-menu" role="menu">
								<c:forEach items="${ismenu.child }" varStatus="index">
									<li><a href="${ismenu.child.get(index.index).classMap }Class.action?classId=${ismenu.child.get(index.index).classId }">${ismenu.child.get(index.index).className }</a></li>
								</c:forEach>
							</ul></li>
					</c:if>
					<c:if test="${ismenu.child.size()==0 }">
						<li class="">
							<a href="
								<c:if test="${ismenu.getArt_ProExistBoolean() }">
									${ismenu.classMap }Detail.action?${ismenu.classMap }Id=${ismenu.getArt_ProId() }
								</c:if>
								<c:if test="${!ismenu.getArt_ProExistBoolean() }">
									${ismenu.classMap }Class.action?classId=${ismenu.classId }
								</c:if>
							">${ismenu.className }
							</a>
						</li>
					</c:if>
				</c:forEach>
			</ul>
		</div>
		</nav>
	</c:if>
	<c:if test="${isEdit==true }">
		<!-- 编辑模式 -->
		<header id="header" class="clearfix">
		<div id="headTitle">
			<div class="wrapper">
				<div id="siteName">
					<h2>日死尼玛--编辑</h2>
				</div>
				<div id="siteSlogan">
					<span></span>
				</div>
			</div>
		</div>
		<div id="headNav">
			<div class="wrapper"></div>
		</div>
		</header>
		<nav id="navbar" class="navbar" role="navigation">
		<div class="collapse navbar-collapse" id="navbarCollapse">
			<ul class="nav navbar-nav">
				<li class="nav-system-home active"><a href="Home.action">首页</a>
				</li>
				<c:forEach items="${requestScope.menu }" var="ismenu">
					<c:if test="${ismenu.child.size()!=0 }">
						<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown">${ismenu.className }<b class="caret"></b></a>
							<ul class="dropdown-menu" role="menu">
								<c:forEach items="${ismenu.child }" varStatus="index">
									<li><a href="${ismenu.child.get(index.index).classMap }Class.action?classId=${ismenu.child.get(index.index).classId }">${ismenu.child.get(index.index).className }</a></li>
								</c:forEach>
							</ul></li>
					</c:if>
					<c:if test="${ismenu.child.size()==0 }">
						<li class="">
							<a href="
								<c:if test="${ismenu.getArt_ProExistBoolean() }">
									${ismenu.classMap }Detail.action?${ismenu.classMap }Id=${ismenu.getArt_ProId() }
								</c:if>
								<c:if test="${!ismenu.getArt_ProExistBoolean() }">
									${ismenu.classMap }Class.action?classId=${ismenu.classId }
								</c:if>
							">${ismenu.className }
							</a>
						</li>
					</c:if>
				</c:forEach>
			</ul>
		</div>
		</nav>
	</c:if>
</body>
</html>
